package cn.easyutil.veteran.core.entity;

import java.util.Set;

/**
 * 当前登陆的用户数据
 */
public class SessionUser extends BaseEntity {

    /**
     * 用户数据传输使用的AES加密密钥
     */
    private String secret;

    /**
     * 为用户签发的token
     */
    private String token;

    /**
     * 用户id
     */
    private Long userId;

    //用户账号
    private String account;

    /**
     * 拥有的接口api访问权限
     */
    private Set<String> apiPaths;

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Set<String> getApiPaths() {
        return apiPaths;
    }

    public void setApiPaths(Set<String> apiPaths) {
        this.apiPaths = apiPaths;
    }
}
